package com.wh.beans.custom;


import com.wh.model.CustomField;

/**
 * 策略模式
 * @author Administrator
 *
 */
public class CustomLabel {
	private ICustomLabel label;

	public CustomLabel(ICustomLabel label) {
		this.label = label;
	}
	/**
	 * 获取自定义标签
	 * 
	 * @return
	 */
	public String getCustomLabel(CustomField field, LabelType type) {
		return label.getCustomLabel(field, type);
	}
	public static void main(String[] args) {
		CustomField field=new CustomField();
		
		field.setFieldDbName("test_dc");
		CustomLabel label=new CustomLabel(new SelectUsers());
		field.setInputProperty(32);
		String str=label.getCustomLabel(field, LabelType.edit);
		System.out.println(str);
	}
}
